<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/20
 * Time: 16:32
 */
namespace app\cron\controller;

use app\cron\service\ArticleService;
use think\console\Command;
use think\console\Input;
use think\console\Output;

/**       获取CSDN文章列表               **/
class Getcsdnarticle extends Command {

    protected function configure() {
        $this->setName('getCsdnArticle')->setDescription('获取CSDN文章列表');
    }

    protected function execute(Input $input, Output $output) {
        $this->_getCsdnArticle();
    }

    private function _getCsdnArticle() {
        ArticleService::matchArticle();
    }



}